package com.fengzhuang;

public class Teacher {
    String xingMing;
    int gongHao;

    public Teacher() {

    }

    public Teacher(String xingMing, int gongHao) {
        this.xingMing = xingMing;
        this.gongHao = gongHao;

    }

    public String getXingMing() {
        return xingMing;
    }

    public void setXingMing(String xingMing) {
        this.xingMing = xingMing;
    }

    public int getGongHao() {
        return gongHao;
    }

    public void setGongHao(int gongHao) {
        this.gongHao = gongHao;
    }
    public void tesch(){
        System.out.println("工号为"+gongHao+"的"+xingMing+"老师正在上课");
    }
}
